package com.scproject.scbef.service.study.schoolnews;

import com.scproject.dto.ResponseDto;
import com.scproject.scbef.pojo.SchoolNews;
import org.springframework.web.multipart.MultipartHttpServletRequest;

import javax.servlet.http.HttpServletRequest;

/**
 * @author LNL
 * @date 2021/5/20 10:31
 */
public interface SchoolNewsService {
    /**
     * 获取所有校园新闻
     * @return
     */
    ResponseDto getAllSchoolNews();

    /**
     * 通过id删除校园新闻
     * @param id
     * @return
     */
    ResponseDto deleteNewsById(String id);

    /**
     * 新增校园新闻
     * @param request
     * @return
     */
    ResponseDto insertNews(MultipartHttpServletRequest request);

    /**
     * 修改校园新闻
     * @return
     */
    ResponseDto updateSchoolNews(SchoolNews schoolNews, HttpServletRequest request);

}
